package com.hkemmm.common.exceptionHandler;

import com.hkemmm.bean.AjaxRes;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
@Slf4j
public class MyExceptionHandler {

    @ExceptionHandler(Exception.class)
    public AjaxRes myException(Exception ex){
        AjaxRes ajaxRes = new AjaxRes();


        return ajaxRes;
    }

}
